package org.webArchi.common.core;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;



/**
 * @author amith jayasekara
 *
 * Data base and configuration intialize class that willbe execute at the deployment time
 *
 */
public class ApplicationInitializer implements ApplicationContextAware {
    private static final Logger logger = LoggerFactory.getLogger(ApplicationInitializer.class);


    public ApplicationInitializer() {
    //Default constructor
    }

    static {
        try {

            logger.info("Static called");
        } catch (Exception e) {
            logger.error("exception when set up initializer", e);
        }
    }


    @Override
    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
        //To change body of implemented methods use File | Settings | File Templates.
    }
}
